import request from '@/utils/request'

export const getEnterpriseListApi = (params) => request.get('/park/enterprise', { params })

export const getIndustryListApi = () => request.get('/park/industry')

export const uploadApi = (data) => request.post('/upload', data)

export const createEnterpriseApi = (data) => request.post('/park/enterprise', data)

export const getEnterpriseDetailApi = (id) => request.get(`/park/enterprise/${id}`)

export const updateEnterpriseApi = (data) => request.put('/park/enterprise', data)

export const delEnterpriseApi = (id) => request.delete(`/park/enterprise/${id}`)

export const getRentBuildListApi = () => request.get('/park/rent/building')

export const createRentApi = (data) => request.post('/park/enterprise/rent', data)
